package com.wyh.service.gfive;

import com.wyh.common.result.Result;
import com.wyh.domain.po.gfive.PageHelper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wyh.domain.po.gfive.Refund;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @author KmJHHhhhR
 * @description 针对表【refund(退款表)】的数据库操作Service
 * @createDate 2024-05-28 16:16:22
 */
public interface RefundService extends IService<Refund> {

    Result<Map<String, Object>> searchRefund(String custormerName, String customerPhone,
                                             LocalDateTime startTime, LocalDateTime endTime, PageHelper pageHelper);

    Result addRefundPic(int id, List<String> pictures, String receiptnumber);

    Result<Map<String, Object>> selectRefund(String custormerName, String customerPhone,
                                             LocalDateTime startTime, LocalDateTime endTime, PageHelper pageHelper);


    Result getRefundPics(@RequestParam("id") int id);
}
